<include file="Public/ace_header" />
<div class="row">
      <h3 style="text-align:center;"> 姓名：{$student['name']}</h3>
    <form class="form-horizontal" role="form" method="post" style="padding-left: 10px;padding-right: 10px; margin-top: 40px">
        <table width="60%" style="margin-left: 20%">
     <tr>
         <td></td>
         <td>应交</td>
         <td>欠费</td>
         <td>实交</td>
         <td>交费</td>
     </tr>
     <tr><td colspan="5"><hr/></td></tr>
      <volist name="fee" id="f" key="k">
      <php>
       $tuition=D('Tuition')->where(['id'=>$f['tuition_id']])->find();
       $term=D('term')->where(['id'=> $tuition['term_id']])->find();
      </php>
      <php>$shouldModel=D('should')->where(['tuition_id'=>$f['tuition_id'],'student_id'=>$f['student_id']])->find();
     </php>
       <tr>
         <td>{$term['name']}</td>
         <if condition="$shouldModel">
         <td><input type="text" class="width-5" id="money" name="should[{$tuition['id']}]"  value="{$shouldModel['should']}"  readonly/></td>
         <td>{$shouldModel['should']-$f['over']}</td>
         <else/>
          <td><input type="text" class="width-5" id="money" name="should[{$tuition['id']}]"  value="{$tuition['money']}"  readonly/></td>
         <td>{$tuition['money']-$f['over']}</td>
         </if>
         <td>{$f['over']}</td>
         <td><input type="text" class="width-5" id="over" name="over[{$tuition['id']}]"  value="0"></td>
     </tr>
     </volist>
     <for start="1" end="5-k">
    <tr>
        <td>&nbsp;</td>
    </tr>
    </for>
    <tr><td colspan="5"><hr/></td></tr>
       <tr>
         <td>总计：</td>
         <td>{$shouldMun}</td>
         <td>{$shouldMun-$overSum}</td>
         <td>{$overSum}</td>
         <td></td>
     </tr>
       </table>
        
        <div class="form-group" style="margin-top: 30px">
            <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="sex"> 经办人 </label>
            <div class="col-xs-12 col-sm-6">
                <select name="name" id="name" class="width-100 find-select">
                    <option value="宁丽云" >宁丽云</option>
                    <option value="扈文华">扈文华</option>
                </select>
            </div>
            <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
        </div>
           <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="way"> 缴款方式 </label>
            <div class="col-xs-12 col-sm-6">
                <select name="way" id="way" class="width-100 find-select">
                    <option value="刷卡" >刷卡</option>
                    <option value="现金">现金</option>
                    <option value="信用卡">信用卡</option>
                    <option value="抵扣">抵扣</option>
                    <option value="其他">其他</option>
                    <option value="其他1">其他1</option>
                    <option value="其他2">其他2</option>
                    <option value="其他3">其他3</option>
                </select>
            </div>
            <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
        </div>
        <div class="clearfix form-actions">
            <div style="margin-left: 25%;">
                    <button class="btn btn-info btn-sm" type="submit">
                        <i class="icon-ok bigger-110"></i> 交费
                    </button>
                </a>
                &nbsp; &nbsp; &nbsp;
                <a href="{:U('Record/RecordStudent')}">
                    <button class="btn btn-sm return" type="button">
                        <i class="icon-reply bigger-110"></i> 返回
                    </button>
                </a>
            </div>
        </div>
    </form>
</div>
<!-- <div style="display:none;">
    <object id="CardReader1" codebase="./FirstActivex.cab#version=1,0,3,1" classid="CLSID:F225795B-A882-4FBA-934C-805E1B2FBD1B">
        <param name="_Version" value="65536" />
        <param name="_ExtentX" value="2646" />
        <param name="_ExtentY" value="1323" />
        <param name="_StockProps" value="0" />
        <param name="port" value="\u4e32\u53e31" />
        <param name="PhotoPath" value="" />
        <param name="ActivityLFrom" value="" />
        <param name="ActivityLTo" value="" />
    </object>
</div> -->
<include file="Public/ace_footer" />
